home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / misc / math / MathFX_src.lha / define.c < prev    next >
C/C++ Source or Header  |  1995-12-20  |  3KB  |  83 lines

  1. /*
  2. * Global variables for C plotting package
  3. *
  4. * device  :  Graphics device number
  5. * termin  :  Zero for noninteractive device, non-zero for terminal
  6. * graphx  :  Zero if currently in text mode, non-zero for graphics mode
  7. * currx   :  Physical x-coordinate of current point
  8. * curry   :  Physical y-coordinate of current point
  9. * vpp...  :  Viewport boundaries in physical coordinates
  10. * spp...  :  Subpage  boundaries in physical coordinates
  11. * clp...  :  Clip     boundaries in physical coordinates
  12. * phy...  :  Physical device limits in physical coordinates
  13. * nsub.   :  Number of subpages on physical device
  14. * cursub  :  Current subpage
  15. * um.     :  Number of micrometres in a pixel
  16. * font    :  Current default font
  17. * colour  :  Current default colour
  18. * mark    :  Array of mark lengths in micrometres for broken lines
  19. * space   :  Array of space lengths in micrometres for broken lines
  20. * nms     :  Number of elements for current broken line style
  21. * timecnt :  Timer for broken lines
  22. * alarm   :  Alarm indicating change of broken line status
  23. * pendn   :  Flag indicating if pen is up or down
  24. * curel   :  Current element within broken line
  25. * level   :  Initialization level
  26. *
  27. * spd...  :  Subpage  boundaries in normalized device coordinates
  28. * vpd...  :  Viewport boundaries in normalized device coordinates
  29. * vpw...  :  Viewport boundaries in world coordinates
  30. * .pmm    :  Number of pixels to a millimetre
  31. * wp....  :  Transformation variables for world  to physical conversion
  32. * dp....  :  Transformation variables for device to physical conversion
  33. * mp....  :  Transformation variables for millimetres from bottom left
  34. *             hand corner to physical coordinates
  35. * wm....  :  Transformation variables for world coordinates to mm
  36. * chr...  :  Character default height and current (scaled) height
  37. * sym...  :  Symbol    default height and current (scaled) height
  38. * maj...  :  Major tick default height and current (scaled) height
  39. * min...  :  Minor tick default height and current (scaled) height
  40. * base3.  :  World coordinate size of base for 3-d plot
  41. * basec.  :  Position of centre of base for 3-d plot
  42. * dom...  :  Minimum and maximum values for domain
  43. * zzscl   :  Vertical (z) scale for 3-d plot
  44. * ran..   :  Minimum and maximum z values for 3-d plot
  45. * c..     :  Coordinate transformation from 3-d to 2-d
  46. */
  47.  
  48. #include <stdio.h>  /* Just for NULL definition */
  49.  
  50.  
  51. int device, termin, graphx;
  52. int currx,  curry;
  53. int vppxmi, vppxma, vppymi, vppyma;
  54. int sppxmi, sppxma, sppymi, sppyma;
  55. int clpxmi, clpxma, clpymi, clpyma;
  56. int phyxmi, phyxma, phyymi, phyyma;
  57. int nsubx,  nsuby, cursub;
  58. int umx,    umy;
  59. int font,   colour, style;
  60. int mark[10], space[10], nms, timecnt;
  61. int alarm,  pendn,  curel;
  62. int level=0;
  63.  
  64. int *heap3=NULL;
  65. int *heapc=NULL;
  66.  
  67. float spdxmi, spdxma, spdymi, spdyma;
  68. float vpdxmi, vpdxma, vpdymi, vpdyma;
  69. float vpwxmi, vpwxma, vpwymi, vpwyma;
  70. float xpmm,   ypmm;
  71. float wpxscl, wpxoff, wpyscl, wpyoff;
  72. float dpxscl, dpxoff, dpyscl, dpyoff;
  73. float mpxscl, mpxoff, mpyscl, mpyoff;
  74. float wmxscl, wmxoff, wmyscl, wmyoff;
  75. float chrdef, chrht;
  76. float symdef, symht;
  77. float majdef, majht;
  78. float mindef, minht;
  79. float base3x, base3y, basecx, basecy;
  80. float domxmi, domxma, domymi, domyma;
  81. float zzscl,  ranmi,  ranma;
  82. float cxx,    cxy,    cyx,    cyy,   cyz;
  83.